/**
 * 
 */
package t4j.typeinfo;

/**
 * @author sz
 *
 * create time：2012-12-11
 */
class Candy{
	static {System.out.println("Loding Candy");}
}

class Gum{
	static{
		System.out.println("Loding Gum");
	}
}

class Cookie{
	static {
		System.out.println("Loding Cookie");
	}
}

public class SweetShop {

	public static void main(String[] args) {
		System.out.println("inside main");
		
		new Candy();
		
		System.out.println("After creating Candy");	

		try {
			Class.forName("t4j.typeinfo.Gum");
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			System.out.println("Couldn't find Gum");
		}
		
		System.out.println("After class.forName(\"Gum\")");
		
		new Cookie();
		
		System.out.println("After creating Cookie");
		
	}
	
}
